<extend name="Public:common"/>
<block name="main">
    <!--main部分开始-->
    <div class="blog-main clearfix w1200">
        <div class="fl w890 blog-list">

            <!--轮播图模块开始-->
            <div class="banner-slide">
                <div class="entry-nav">
                    <h3>{$menu.catname}</h3>
                    <ul class="entry-nav-items">
                        <for start="0" end="count($menu[children])" step="2">
                                <li class="icon-arrowr">
                                    <a href="/articleType/{$menu.children.$i.id}">{$menu.children.$i.catname}</a>
                                    <a href="/articleType/{$menu[children][$i+1][id]}">{$menu[children][$i+1][catname]}</a>
                                    <ul class="nav-items">
                                            <li class="clearfix">
                                                <a href="/articleType/{$item3.id}">
                                                    <h3>{$menu.children.$i.catname}</h3>
                                                </a>
                                                <foreach name="menu[children][$i][children]" item="item">
                                                    <a href="/articleType/{$item.id}" class="nav-item">{$item.catname}</a>
                                                </foreach>
                                            </li>
                                            <li class="clearfix">
                                                <a href="/articleType/{$item3.id}">
                                                    <h3>{$menu[children][$i+1][catname]}</h3>
                                                </a>
                                                <foreach name="menu[children][$i+1][children]" item="item">
                                                    <a href="/articleType/{$item.id}" class="nav-item">{$item.catname}</a>
                                                </foreach>
                                            </li>
                                    </ul>
                                </li>
                        </for>
                    </ul>

                </div>
                <Gr:flash flashid="1"/>
            </div>
            <!--轮播图模块结束-->

            <!--干货推荐-->
            <h3 class="blog-pub-title mt30">精华博文</h3>

            <ul class="list-items" id="list">
                <foreach name="articleList" item="item">
                    <li class="list-item">
                    <a target="_blank" href="news/{$item.id}">
                        <p class="title">{$item.title}</p>
                    </a>
                    <p class="info">{$item.description}</p>
                    <div class="mess">
                        <span><a href="articleType/{$item.parent.id}">{$item.parent.catname}</a></span>
                        <span class="icon-browse">{$item.hits}</span>
                        <span class="fr colorbb"><?=date("Y-m-d H:i:s", $item[createtime])?></span>
                    </div>
                </li>
                </foreach>
            </ul>
            <script type="text/template" id='blog_template'>
                <%for(var i=0;i<items.length;i++){%>
                <li class="list-item">
                    <a target=_blank href="news/item[i].id"><p><%=items[i].title%></p></a>
                    <p class="info"><%=items[i].description%></p>
                    <div class="mess" >
                        <span><a href="articleType/<%=items[i].parent.id%>"><%=items[i].parent.catname%></a></span>
                        <span class="icon-browse"><%=items[i].hits%></span>
                        <span class="fr colorbb"><%=items[i].createtime%></span>
                    </div>
                </li>
                <%}%>
            </script>
            <div class="load-more" onclick="blogObj.listLoadMore($(this),'/getArticleMore',20)" data-page="2"
                 data-flag="true">点击加载更多<a href='/article_site_list/2'>下一页</a>
            </div>
            <div class="icon-back-top" onclick="$('html,body').animate({scrollTop:0},'slow');"></div>
        </div>

        <div class="fr w290">
            <div class="blog-choice contactus right-fixed">
                <dl>
                    <dt><span>联系我们</span></dt>
                    <dd class="info clearfix" style="max-height:80px">
                        <div class="qrcode fl">
                            <img src="{$site_wxqrcode}" alt="">
                        </div>
                        <div class="ways fl">
                            <div>{$site_email}</div>
                            <div>{$site_lxr}</div>
                        </div>
                    </dd>

                    <dd class="siteinfo"><a target="_blank" href="http://beian.miit.gov.cn">{$site_approve}</a></dd>
                </dl>
            </div>
        </div>
    </div>
    <!--main部分结束-->
    <script>
        $(function () {
            blogObj.banner(3500);
        })
    </script>
</block>
